//
//  HKMainPageModel.m
//  HKTimeKitApp
//
//  Created by huzhaoke1 on 2023/5/13.
//

#import "HKMainPageModel.h"
#import <MJExtension/MJExtension.h>
#import "HKRequestDefine.h"

@implementation HKMainPageModel

+ (NSDictionary *)mj_replacedKeyFromPropertyName {
    return @{@"recordId" : @"id"};
}

- (NSString *)currentWebUrl {
    NSString *url;
    if (self.isFromLocal) {
        url = HKQuestionhomeUrl;
    } else if (self.recordId == 1) {
        url = HKCreatescheduleUrl;
    } else if (self.recordId == 2) {
        url = HKEmotionhomeUrl;
    } else if (self.recordId == 3) {
        url = HKExperienceUrl;
    } else if (self.recordId == 4) {
        url = HKCreateGoalUrl;
    }
    return url;
}

@end
